export const PICTURE_CATEGORIES = [
    {value: 'nature', label: '自然风光'},
    {value: 'portrait', label: '人物肖像'},
    {value: 'architecture', label: '城市建筑'},
    {value: 'food', label: '美食'},
    {value: 'animal', label: '动物'},
    {value: 'art', label: '艺术设计'},
    {value: 'technology', label: '科技'},
    {value: 'other', label: '其他'}
] as const

export const getCategoryLabel = (value: string) => {
    return PICTURE_CATEGORIES.find(c => c.value === value)?.label || value
}

export const REVIEW_STATUS_MAP: Record<number, { text: string; color: string }> = {
    0: {text: '待审核', color: 'orange'},
    1: {text: '已通过', color: 'green'},
    2: {text: '已拒绝', color: 'red'}
}

export const getReviewStatusText = (status?: number) => {
    return REVIEW_STATUS_MAP[status ?? 0]?.text || '未知'
}

export const getReviewStatusColor = (status?: number) => {
    return REVIEW_STATUS_MAP[status ?? 0]?.color || 'default'
}

